package com.huaxinkai.mobile.util.wechatUtil.bean;

import java.util.Date;

/**
 * 响应微信请求信息的基类
 * 
 * @author liuzh
 * 
 */
public class WeChatResBaseMessage {
	// 接收方帐号（收到的OpenID）
	protected String ToUserName = "";
	// 开发者微信号
	protected String FromUserName = "";
	// 消息创建时间 （整型）
	protected long CreateTime = new Date().getTime() / 1000;
	// 消息类型（text/music/news）
	protected String MsgType = "text";
	// 位0x0001被标志时，星标刚收到的消息
	protected int FuncFlag = 0;

	public String getToUserName() {
		return ToUserName;
	}

	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}

	public String getFromUserName() {
		return FromUserName;
	}

	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}

	public long getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(long createTime) {
		CreateTime = createTime;
	}

	public String getMsgType() {
		return MsgType;
	}

	public void setMsgType(String msgType) {
		MsgType = msgType;
	}

	public int getFuncFlag() {
		return FuncFlag;
	}

	public void setFuncFlag(int funcFlag) {
		FuncFlag = funcFlag;
	}

	public WeChatResBaseMessage() {
	}

	public WeChatResBaseMessage(String toUserName, String fromUserName) {
		this.ToUserName = toUserName;
		this.FromUserName = fromUserName;
	}

	@Override
	public String toString() {
		return "WeChatResBaseMessage [ToUserName=" + ToUserName + ", FromUserName=" + FromUserName + ", CreateTime=" + CreateTime + ", MsgType=" + MsgType + ", FuncFlag=" + FuncFlag + "]";
	}

}
